//
//  LBWHomeTableViewController.swift
//  weibo
//
//  Created by Limonwei on 15/12/5.
//  Copyright © 2015年 heima. All rights reserved.
//

import UIKit

class LBWHomeTableViewController: LBWVisitorTableViewController {
    
    override func viewDidLoad() {
        //
        super.viewDidLoad()
        
        if !userLogin {
            
            visitorView?.setVisitorInto(nil, message: nil)
            
            return
        }
        
        setupUI()
    }
    
    private func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem(imgName: "navigationbar_friendsearch", target: self, action: "friendsearch")
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: "navigationbar_pop", target: self, action: "friendsearch")
    }
    
    
    @objc private func friendsearch(){
        let vc = LBWTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}
